go/types.operand.assignableTo (method)
9 uses
go/types (current package)
api_predicates.go#L35: ok, _ := x.assignableTo(nil, T, nil) // check not needed for non-constant x
assignments.go#L111: if ok, code := x.assignableTo(check, T, &cause); !ok {
builtins.go#L120: if ok, _ := x.assignableTo(check, NewSlice(universeByte), nil); ok {
conversions.go#L141: if ok, _ := x.assignableTo(check, T, cause); ok {
expr.go#L469: ok, _ := x.assignableTo(check, y.typ, nil)
expr.go#L471: ok, _ = y.assignableTo(check, x.typ, nil)
operand.go#L312: func (x *operand) assignableTo(check *Checker, T Type, cause *string) (bool, Code) {
operand.go#L421: ok, code = x.assignableTo(check, T.typ, cause)
operand.go#L443: ok, code = x.assignableTo(check, T, cause)